﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Order.Orders.Dto
{
    public class GenerateOrderDto
    {
        public bool IsFromShoppingCart { get; set; }
        public List<GenerateOrderCommodityItemDto> Items { get; set; }
        public int? CouponId { get; set; }
        public int UsedXPValue { get; set; }
        public int? DeliveryAddressId { get; set; }
        public int? ShippingTemplateId { get; set; }
        public PaymentType PaymentType { get; set; }
        public string Remark { get; set; }

        public GenerateOrderDto()
        {
            Items = new List<GenerateOrderCommodityItemDto>();
        }
    }

    public class GenerateOrderCommodityItemDto
    {
        [Required]
        public int CommodityId { get; set; }
        public int? ShoppingOptionId { get; set; }
        public int Count { get; set; }
    }
}
